package com.fds.demo.alipay.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: fds
 * @date: 2019/11/1
 * @description: 支付宝配置bean
 */
@Data
@Component
public class AliPayConf {

    /**
     * appId.
     */
    @Value("${aliPay.appId:1}")
    private String appId;

    /**
     * 应用私钥.
     */
    @Value("${aliPay.privateKey:1}")
    private String privateKey;

    /**
     * 应用公钥证书位置.
     */
    @Value("${aliPay.appPublicCertPath:1}")
    private String appPublicCertPath;

    /**
     * 阿里公钥证书位置.
     */
    @Value("${aliPay.aliPayPublicCertPath:1}")
    private String aliPayPublicCertPath;

    /**
     * 阿里根证书位子.
     */
    @Value("${aliPay.aliPayRootCert:1}")
    private String aliPayRootCert;

    /**
     * 服务网关.
     */
    @Value("${aliPay.serverUrl:1}")
    private String serverUrl;

    /**
     * 应用网关.
     */
    @Value("${aliPay.domain:1}")
    private String domain;

    /**
     * 课程异步通知地址.
     */
    @Value("${aliPay.notifyUrl:1}")
    private String notifyUrl;
}